package com.resurvolution.kingcloudmusicspringboot.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.resurvolution.kingcloudmusicspringboot.product.vo.*;
import com.resurvolution.kingcloudmusicspringboot.product.entity.SongsEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.sound.sampled.UnsupportedAudioFileException;
import java.io.IOException;
import java.util.List;

public interface SongsService extends IService<SongsEntity> {
    void uploadSongs(MultipartFile song, MultipartFile lyric, MultipartFile tinyImg, MultipartFile largeImg, String songDataJson) throws IOException, UnsupportedAudioFileException;
    List<CarouselsVO> getCarouselsList();
    SongsVO getSongById(Integer id);
    List<RecommendSongsVO> getRecommendSongList(Integer id);
    PageVO<SongsPageVO> getPage(Integer page, Integer size, String sortBy, String sortOrder, Integer genreId);
}
